package com.beyond.trace.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.beyond.trace.domain.dto.warn.WarnRuleListDTO;
import com.beyond.trace.domain.pojo.warn.WarnRulePageQuery;
import com.beyond.trace.domain.warn.WarnRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName: WarnRuleMapper
 * @author: z越
 * @date: 2023/2/24  9:55
 * @description
 */
@Mapper
public interface WarnRuleMapper extends BaseMapper<WarnRule> {

    /**
     * @author z越
     * @description 分页查询数据
     * @date 2023/2/24 14:33
     * @params query 参数
     * @returns 结果集
     */
    Page<WarnRuleListDTO> findAllPages(Page<WarnRule> page, @Param("query") WarnRulePageQuery query);
}
